/*
 * @Author: ChunLai
 * @Date: 2022-06-10 10:52:21
 * @LastEditTime: 2024-11-22 15:17:43
 * @Description: 业务员信息
 * @FilePath: \01.latest-short-insure\src\store\modules\agent.js
 */

const state = {
  name: "",
  workNum: "",
  mobile: "",
  saleProvinceNo: "", // 测试
  headImg: "",
  idNum: "",
  hasSaleAuth: "0", //有无销售权限 0有 1无
  phoneNum: "",
  promotionProvinceList: [],
  LicentiateUrl: "/app/pages/user/info/license?workNum=", // 执业资格证地址
};
const getters = {
  agentInfo: (state) => state,
  hasSaleAuth: (state) => state.hasSaleAuth,
  LicentiateUrl: (state) => state.LicentiateUrl,
  promotionProvinceList: (state) => state.promotionProvinceList,
  saleProvinceNo: (state) => state.saleProvinceNo,
};
const mutations = {
  SET_STATE_FIELD(state, payload) {
    Object.assign(state, payload);
  },
};
const actions = {};

export default {
  namespaced: true, //用于在全局引用此文里的方法时标识这一个的文件名
  state,
  getters,
  mutations,
  actions,
};
